import Vue from 'vue'
import VueRouter from 'vue-router'
import Goods from '../views/Goods.vue'
import Seller from '../views/Seller.vue'
import Reating from '../views/Reating.vue'
import Food from '../views/food.vue'

Vue.use(VueRouter)

const routes = [
  { path: '/', redirect: '/goods' },
  {
    path: '/goods',
    name: 'goods',
    component: Goods
  },
  {
    path: '/seller',
    name: 'seller',
    component: Seller
  },
  {
    path: '/reating',
    name: 'reating',
    component: Reating
  },
  {
    path: '/food',
    name: 'food',
    component: Food
  }
]

const router = new VueRouter({
  routes
})

export default router
